import { Modal, ModalHookReturnType } from "@arco-design/web-react";

let modalInstance: ModalHookReturnType | null = null;

export default function GlobalModal() {
  const [modal, contextHolder] = Modal.useModal();
  modalInstance = modal;
  return <div>{contextHolder}</div>;
}

export { modalInstance };
